home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Know Your Hockey - The Greatest Player Resource
/
Know Your Hockey: The Greatest Player Resource.iso
/
hockey
/
director
/
ssqcst.cst
/
00035_Script_DetailScript
< prev
next >
Wrap
Text File
|
1998-09-28
|
3KB
|
90 lines
global gTheBench,gXcast,gPrompts,gClipout
on MouseDown
set the mouseUpScript = "dontPassEvent"
set the mouseDownScript = "dontPassEvent"
set the movierate of sprite 48 = 0
updatestage
set localList = getaprop(gtheBench,#Card)-- get available cards for this player
set LocalText = getaprop(gtheBench,#text)-- available text cards for this player
-- get the current card name
set currentCard = the name of member (the membernum of sprite 7)of castlib gXcast
set range = count(LocalList)
set CardNum = getOne(LocalList,currentCard)
set the membernum of sprite 40 = the number of member "details" of castlib "SSQCST"
repeat with x = 1 to count(LocalText)
set templist = getat(LocalText,x)
put templist
set test = getone(templist,currentcard)
if test > 0 then
set CardNum2 = x
exit repeat
end if
end repeat
set theNum = max(CardNum,CardNum2)-- use the grater value as one maybe 0
if TheNum < Range then
set NextCard = getat(LocalList,(TheNum+1))
set which = Thenum+1
else
set NextCard = getat(LocalList,1)
set which = 1
end if
set it = the number of member NextCard of castlib gXcast
set the membernum of sprite 7 = it
set the scriptText of member (the number of member it) = ¼
The scriptText of member (the number of member "BigCard" of castlib "SSQCST")
setat(gprompts,7,nextcard)
-- change the video
set loseit = the member of sprite 48
set localVideoList = getaprop(gtheBench,#video)
set thevideo = getat(localVideoList,which)
ProJrOFF -- resets the pro and jr Icon to off
set the membernum of sprite 48 = the number of member thevideo of castlib gXcast
unloadMember member loseit
updatestage
set gclipout =( the duration of member thevideo of castlib gXcast)-30
set the movierate of sprite 48 = 0
setvideovolume
set gClipOut =the duration of member theVideo of castlib gXCast -30-- sets the end point for the script videoplayer
ControlOn -- turns the control bar
-- sets up the text button
-- assumes that the More button was cut out of a large card so registration is the same
puppetsprite 43,1
set the type of sprite 43 = 16
set the membernum of sprite 43 = the number of member "MoreInfo" of castlib "SSQCST"
set the ink of sprite 43 = 32
set the locv of sprite 43 = the locv of sprite 1
set the loch of sprite 43 = the loch of sprite 1
set the blend of sprite 43 = 0
set the visible of sprite 43 = 1
set the type of sprite 9 = 0
set the type of sprite 10 = 0
set t = the number of member "MoreInfo"-- reset the more info script
set the scriptText of member t = the scriptText of member (the number of member "DisplayText" of castlib "SSQCST")
put which && "of" && range into field "CardCount" of castlib "internal"
updateStage
-- play the card title
set TheSound = getaprop(gTheBench,#title)
set positionList = getaProp(gTheBench,#video)
-- find which large card is on the screen
set selection = the name of member (the membernum of sprite 48) of castlib gXCast
set which = getPos(positionList,selection)
set playit = getat ( TheSound,which)
puppetsound playit
updateStage
set the mouseUpScript to empty
set the mouseDownScript to empty
end